package com.woniu.mapper;

import com.woniu.entity.MedSurgeryApplication;
import com.woniu.vo.SurgeryAppVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 11214
* @description 针对表【med_surgery_application(手术申请表)】的数据库操作Mapper
* @createDate 2025-10-31 17:17:05
* @Entity com.woniu.entity.MedSurgeryApplication
*/
public interface MedSurgeryApplicationMapper {

    Integer deleteByPrimaryKey(Long id);

    Integer insert(MedSurgeryApplication record);

    Integer insertSelective(MedSurgeryApplication record);

    MedSurgeryApplication selectByPrimaryKey(Long id);

    Integer updateByPrimaryKeySelective(MedSurgeryApplication record);

    Integer updateByPrimaryKey(MedSurgeryApplication record);
    //查看手术申请列表
    List<MedSurgeryApplication> listSurgeryApplications();

    // *** 2. 额外添加的新方法 ***
    List<SurgeryAppVO> listSurgeryApplicationsByPatientId(Integer patientId);
}
